package com;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class TriangleTrilemma {
	public static void main(String[] args) {
		String fileName = "triangle_trilemma\\input\\A-";
		if(args.length>0) {
			fileName += args[0] + "-practice.in";
		}
		else
			fileName += "small-practice.in";
		try {
			BufferedReader input = new BufferedReader(new FileReader(fileName));
			BufferedWriter output = new BufferedWriter(new FileWriter("out.txt"));
			try {
				int lines = new Integer(input.readLine().trim()).intValue();
				for (int j=0;j<lines;j++) {
					String[] points = input.readLine().trim().split("\\s");
					int[] intPoints = new int[6];
					for (int k=0; k<6; k++) {
						intPoints[k] = new Integer(points[k]).intValue();
					}
					Triangle triangle = new Triangle(intPoints);
					output.write("Case #"+(j+1)+": "+triangle.getTrianlgeDescription()+"\n");
				}
			}
			finally {
				input.close();
				output.close();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
